package com.swt.service.impl.S_impl;

import com.swt.dao.S_dao.GetClubDao;
import com.swt.domain.Club;
import com.swt.service.S_service.GetClubService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service(value = "s_getclubservice")
public class getClubServiceImpl implements GetClubService {
    /*注入dao*/
    @Resource(name = "s_getclubdao")
    private GetClubDao getClubDao;
    @Override
    public List<Club> getClub() {
        List<Club> list = getClubDao.S_getClub();
        return list;
    }

    @Override
    @Transactional
    public void edit() {

    }

    @Override
    public Club getclubByid(int clubId) {
        Club club = getClubDao.getclubByib(clubId);
        return club;
    }
}
